package demo3;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("summer")
public class Shirt implements Clothes{
   /* @Autowired
    private Sweater sweater;*/
    public void wear(){
        System.out.println("穿上T恤");
        //sweater.wear();
    }
}
